package top.mcwebsite.markdown.render

import org.intellij.markdown.MarkdownElementTypes
import org.intellij.markdown.MarkdownTokenTypes
import org.intellij.markdown.flavours.gfm.GFMElementTypes

val defaultRenderMap = mapOf(
    MarkdownElementTypes.PARAGRAPH to ParagraphRender,
    MarkdownElementTypes.ATX_1 to HeadingComponent,
    MarkdownElementTypes.ATX_2 to HeadingComponent,
    MarkdownElementTypes.ATX_3 to HeadingComponent,
    MarkdownElementTypes.ATX_4 to HeadingComponent,
    MarkdownElementTypes.ATX_5 to HeadingComponent,
    MarkdownElementTypes.ATX_6 to HeadingComponent,
    MarkdownElementTypes.SETEXT_1 to HeadingComponent,
    MarkdownElementTypes.SETEXT_2 to HeadingComponent,
    MarkdownElementTypes.BLOCK_QUOTE to BlockQuoteComponent,
    MarkdownTokenTypes.HORIZONTAL_RULE to DividerComponent,
    MarkdownElementTypes.ORDERED_LIST to OrderedListComponent,
    MarkdownElementTypes.UNORDERED_LIST to UnOrderedListComponent,
    MarkdownElementTypes.CODE_FENCE to CodeFenceComponent,
    MarkdownElementTypes.LINK_DEFINITION to NothingComponent,
    GFMElementTypes.TABLE to TableComponent,
    MarkdownTokenTypes.EOL to EOL,
)